#ifndef CSHAPEEX_H
#define CSHAPEEX_H

#include "stdafx.h"
using namespace std;

class CShapeEx
{
	private:
		int left;
		int top;
		int right;
		int bottom;
		bool filled;
		int penWidth;
		int penStyle;
		COLORREF brushColor;
		COLORREF penColor;
		int pattern;

	public:
		CShapeEx();

		virtual void SetInfor(int _left, int _top, int _right, int _bottom, bool _filled,
								int _penWidth, int _penStyle, COLORREF _brushColor, COLORREF _penColor,
								int _pattern);
		virtual void SetInfor(int type, COLORREF _color);
		virtual void SetInfor(int type, int value);
		virtual void SetInfor (bool filled);
		virtual void SetInfor(int _left, int _top, int _right, int _bottom);
		virtual void GetInfor(int& _left, int& _top, int& _right, int& _bottom, bool& _filled,
								int& _penWidth, int& _penStyle, COLORREF& _brushColor, COLORREF& _penColor,
								int& _pattern);
		virtual void GetInfor(int, COLORREF&);
		virtual void GetInfor(int, int&);
		virtual void GetInfor(int&);
		virtual void GetInfor(bool&);
		virtual void GetInfor(int& _left, int& _top, int& _right, int& _bottom);
		virtual void Move(int dx, int dy);
		virtual void View(HDC hdc) {} //do nothing	
		virtual void View(HDC, char*) {};
		virtual bool IsInShape(POINT) {return true;}
		virtual bool IsInShape(POINT, POINT); //{return true;}
		virtual int isResizing(POINT);
		virtual void Resize(int, int, int);
};

#endif